import {
    request,
    hotelRequest,
    otherRequest
} from '@/sheep/request'
export default {
    // 获取套餐信息
    getStoreInfoPay: (params) =>
        request({
            url: '/shop/api/user/store/getHotPackage',
            method: 'POST',
            data: params,
            custom: {
                // auth: true,
                showLoading: false,
            },
        }),
    // 按规则获取推荐商品
    getStoreDetailWash: (params) =>
        request({
            url: '/shop/api/user/store/getStoreHotGoods',
            method: 'POST',
            data: params,

        }),
    // 获取店铺商品列表
    getStoreDetail: (params) =>
        request({
            url: '/shop/api/user/store/getStoreGoods',
            method: 'POST',
            data: params,

        }),
    // 任务列表
    getStoreList: (params) =>
        request({
            url: '/shop/yb/taskList',
            method: 'GET',
            params
        }),
    // 规则
    getRules: () =>
        request({
            url: '/shop/api/user/store/storeLevelRule',
            method: 'GET',
        }),
    // 超引擎排行榜数据详情
    getCyqRankDetail: () =>
        request({
            url: '/shop/api/user/store/cyqDataInfo',
            method: 'GET'
        }),
    // 获取店铺商品列表
    getCyqRankList: (params) =>
        request({
            url: '/shop/api/user/store/cyqCharts',
            method: 'POST',
            data: params
        }),
    // 获取店铺商品列表new
    getCyqRankListNew: (params) =>
        request({
            url: '/shop/api/user/store/cyqChartsNew',
            method: 'POST',
            data: params
        }),
    // 好友助力
    getHelpList: () =>
        request({
            url: '/shop/yb/helpList',
            method: 'GET',
        }),
    // 我的团队
    getMyTeam: (params) =>
        request({
            url: '/user/api/user/myTeam',
            method: 'GET',
            params,
            custom: {
                showError: false,
            }
        }),
    // 获取店铺信息
    getStoreInfo: (params) =>
        request({
            url: '/shop/api/user/store/getStoreDetails/' + params.id,
            method: 'GET',
        }),
    // 检测是否购买套餐
    checkIsBuy: () =>
        request({
            url: '/shop/api/user/store/checkBuyPackage',
            method: 'GET',
        }),
    // 获取自己店铺信息
    getOwnStoreInfo: () =>
        request({
            url: '/shop/api/user/store/getMyStoreDetails',
            method: 'GET',
            custom: {
                showError: false,
                showLoading: false
            }
        }),
    getMyStore: () =>
        request({
            url: '/shop/api/user/store/details',
            method: 'GET',
        }),
    //  设置上级
    setUpUser: (data) =>
        request({
            url: "/shop/yb/setPid",
            method: "POST",
            data: data
        })
    // 获取商城分类
    ,
    getStoreCategory: (params) =>
        request({
            url: '/shop/api/category',
            method: 'GET',
            params
        }),
    // 获取商品列表
    getStoreGoods: (params) =>
        request({
            url: '/shop/api/goods/goods/selectedGoodsList',
            method: 'GET',
            params
        }),
    // 加入商品到店铺
    addStoreGoods: (data) =>
        request({
            url: '/shop/api/goods/goods/addToStore',
            method: 'POST',
            data
        }),
    // 获取店铺信息
    getNormalStoreInfo: (params) =>
        request({
            url: '/shop/api/goods/goods/getSelectedStoreDetails/' + params.id,
            method: 'GET',
			custom:{
				auth:true
			}
        }),
    // 获取店铺商品信息
    getNormalStoreGoods: (params) =>
        request({
            url: '/shop/api/goods/goods/getSelectedStoreGoods',
            method: 'POST',
            data: params
        }),
    // 获取精选资源位图片
    getStoreImages: () =>
        request({
            url: '/shop/api/goods/goods/getSelectedResource',
            method: 'GET',
        }),
        // 删除我的店铺商品
	deleteStoreGoods: (data) =>
        request({
            url: '/shop/api/goods/goods/delSelectedStore',
            method: 'POST',
            data
        }),
	// 删除我的店铺商品
	editStore: (data) =>
	    request({
	        url: '/shop/api/user/store/editStore',
	        method: 'POST',
	        data
	    }),
	//超引擎店铺虚拟店铺列表
	getCyqSonStore:() =>
	    request({
	        url: '/shop/yb/get_cyq_son_store',
	        method: 'GET',
	    }),
}